﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<form id="form1">
    <div class='myzh_right_content fr'>
        <p class='right_head_title'><span class="span1">我的 ></span> 操作</p>
        <div class="recharge-content">
            <input type="hidden" id="id" name="id" value="${data.id}"/>
            <div class="mt-10">
                <span class="fl mt-3 w-120">联系邮箱：</span>
                ${data.email}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">问题分类：</span>
                ${data.q_type}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">问题描述：</span>
                ${data.q_desc}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">创建时间：</span>
                <fmt:formatDate value="${data.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">用户编号：</span>
                <c:choose>
                    <c:when test="${data.platform==1}">
                        <a target="_blank" href="${basePath}/t_user_seller_info/add?uesr_id=${data.user_id}"></a>
                    </c:when>
                    <c:when test="${data.platform==2}">
                        <a target="_blank" href="${basePath}/t_user_buyer_info/add?uesr_id=${data.user_id}"></a>
                    </c:when>
                </c:choose>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">反馈时用户审核状态：</span>
                <c:choose>
                    <c:when test="${data.user_auth_status==0}">
                        未提交审核
                    </c:when>
                    <c:when test="${data.user_auth_status==1}">
                        审核通过
                    </c:when>
                    <c:when test="${data.user_auth_status==2}">
                        待审核
                    </c:when>
                    <c:when test="${data.user_auth_status==3}">
                        审核驳回
                    </c:when>
                </c:choose>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">反馈时项目审核状态：</span>
                <c:choose>
                    <c:when test="${data.project_aut_status==-1}">
                        保存草稿
                    </c:when>
                    <c:when test="${data.project_aut_status==0}">
                        待审核
                    </c:when>
                    <c:when test="${data.project_aut_status==1}">
                        审核通过
                    </c:when>
                    <c:when test="${data.project_aut_status==2}">
                        审核拒绝
                    </c:when>
                </c:choose>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">项目编号：</span>
                <a style="color:red" href="${basePath}/t_project/add?pid=${data.pid}">
                    ${data.pid}</a>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">所属平台：</span>
                ${data.platform==1?"B端":"C端"}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">附件路径：</span>
                <a href="${imgurl}${data.pic}" target="_blank">
                    ${imgurl}${data.pic}
                </a>
                <div class="cl"></div>
            </div>

            <div class="mt-30 ml-10">
                <input type="button" class="btn btn-1 fl w-100" value="${title}" onclick="add()">
                <input type="button" class="btn btn-2 fl w-100 ml-20" value="返回"
                       onclick="window.history.go(-1)">
            </div>
        </div>
    </div>
</form>
<div class='clear'></div>
<script type="text/javascript">
    function add() {
        $.post("${basePath}/ajax/t_feedback/add", $("#form1").serialize(), function (d) {
            if (d.code == 1) {
                alert("成功");
                window.location.history.go(-1); //"${basePath}/t_feedback/list";
                return;
            }
            alert("失败");
        });
    }
</script>


